home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem
- rem Usage: PR2COL infile
- rem
-
- rem Reformat the input file to 62 characters/line, then print in 2 columns
- rem This is for printers that support a 16.66 or 17 character-per-inch pitch
- rem If you desire, there is room to use an 8 character (/M8) or so left margin.
-
- if "%1" == "" echo Usage: PR2COL infile
- if "%1" == "" goto end
- if not "%2" == "" echo Usage: PR2COL infile
- if not "%2" == "" goto end
-
- rap %1 /W62 \rap.tmp
- if not ERRORLEVEL EQ 0 goto raperror
- colprint \rap.tmp \colprint.tmp /C2 /L132
- if not ERRORLEVEL EQ 0 goto cperror
- print \colprint.tmp
- goto end
- :raperror
- echo Error in RAP processing
- goto end
- :cperror
- echo Error in COLPRINT processing
- goto end
- :end
-